package com.itheima.es.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.es.entity.HotelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Mapper
public interface HotelMapper extends BaseMapper<HotelEntity> {

    /**
     * 批量添加
     * @return
     */
    int addDocToES();

    /**
     * 查询所有
     * @return
     */
    Map<String, Object> matchAllQuery();

    /**
     * 分页查询
     * @param current 当前页
     * @param size 每页显示多少条
     * @return
     */
    Map<String, Object> pageQuery(int current, int size);
}
